package beans;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class UIAlgorithmDetail {

	private String algorithmId;
	private String blockId;
	private ArrayList<UIInputConfig> inputConfig;
	private HashMap<String,String> params;
	private String priority;
	private String parallelStrategy;

    public UIAlgorithmDetail(String blockId) {
    	this.blockId = blockId;
    }

	public UIAlgorithmDetail() {
	}

	public String getParallelStrategy() {
		return parallelStrategy;
	}

	public void setParallelStrategy(String parallelStrategy) {
		this.parallelStrategy = parallelStrategy;
	}

	public String getPriority() {

		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public HashMap<String, String> getParams() {
		return params;
	}
	public void setParams(HashMap<String, String> params) {
		this.params = params;
	}
	public String getAlgorithmId() {
		return algorithmId;
	}
	public void setAlgorithmId(String algorithmId) {
		this.algorithmId = algorithmId;
	}
	public String getBlockId() {
		return blockId;
	}
	public void setBlockId(String blockId) {
		this.blockId = blockId;
	}
	public ArrayList<UIInputConfig> getInputConfig() {
		return inputConfig;
	}
	public void setInputConfig(ArrayList<UIInputConfig> inputConfig) {
		this.inputConfig = inputConfig;
	}
	@Override
	public String toString() {
		String input = "";
		for(UIInputConfig i:inputConfig){
			input+=i.toString()+"\n";
		}
		String paramString = "";
		for(Map.Entry<String, String> entry:params.entrySet()){
			paramString += "param name:"+entry.getKey()+",param value:"+entry.getValue();
		}
		return "UIAlgorithmDetail [algorithmId=" + algorithmId + ", blockId=" + blockId + ", inputConfig=" + input
				+ ", paramsConfig=" + paramString + "]";
	}
	
	
}
